package com.linwen.javase.desgin_pattern.create.clone;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName Student
 * @Description
 * @Author lin
 * @Date 2022/6/15 上午12:11
 * @Version V1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student implements Cloneable{
   private String name;
   private int age;
   @Override
   public Student clone() throws CloneNotSupportedException {
      return (Student) super.clone();
   }
}
